@extends('common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />
    <script language="javascript">
        $(function(){
            $('#owl-demo').owlCarousel({
                items: 1,
                navigation: true,
                navigationText: ["上一个","下一个"],
                autoPlay: true,
                stopOnHover: true
            }).hover(function(){
                $('.owl-buttons').show();
            }, function(){
                $('.owl-buttons').hide();
            });
        });
    </script>
@endsection

@section('html-body')
    <div id="banner" class="banner">
    <div id="owl-demo" class="owl-carousel">
        @if(count($web_info['banner']) > 0)
        @foreach($web_info['banner'] as $banner)
        <a class="item"  href="#" style="background-image:url('{{$banner}}')">
            <img src="{{$banner}}" alt="">
        </a>
        @endforeach
        @endif
    </div>
</div>
<div class="space_hx">&nbsp;</div>
<div class="i_m">
	<div class="i_name"><img src="{{asset('Assets/images/n1.png')}}" width="171" height="59" alt=""/></div>
    <ul class="i_ma clearfix">
    @if(count($applicationFieldList) > 0)
    @foreach($applicationFieldList as $applicationField)
    	<li>
        	<div class="title">
                <img src="{{$applicationField->thumb_img_url}}" alt=""/>
                <span>{{$applicationField->name}}</span>
            </div>
            <div class="tu"><a href="{{route('Home.Index.applicationField')}}?id={{$applicationField->id}}"><img src="{{$applicationField->img_url}}" alt=""/></a></div>
            <div class="des">{{$applicationField->desc}}</div>
			<a href="{{route('Home.Index.applicationField')}}?id={{$applicationField->id}}" class="more">+查看详情</a>
        </li>
    @endforeach
    @endif
    </ul>
</div>
<div class="space_hx">&nbsp;</div>
<div class="hui_bg">
	<div class="i_m clearfix">
    	<div class="i_ml">
        	<div class="i_title">
            	<a href="#"><img src="{{asset('Assets/images/n2.jpg')}}" width="139" height="22" alt=""/></a>
                <div class="line">&nbsp;</div>
                <a href="{{route('Home.Index.news')}}" class="more">+MORE</a>
            </div>
            <div class="i_mb">
                @if(count($indexNews) > 0)
                    @foreach($indexNews as $indexNew)
                        <dl class="clearfix">
                            <dt><a href=""><img src="{{$indexNew->thumb_img_url}}" alt=""/></a></dt>
                            <dd>
                                <div class="title"><a href="{{route('Home.Index.newsDetails')}}?news_id={{$indexNew->id}}&classify_id={{$indexNew->classify_id}}">{{$indexNew->title}}</a></div>
                                <div class="des">{{$indexNew->desc}}</div>
                                <div class="time">
                                    <a href="{{route('Home.Index.newsDetails')}}?news_id={{$indexNew->id}}&classify_id={{$indexNew->classify_id}}">+SEE MORE</a>
                                    {{$indexNew->created_at}}
                                </div>
                            </dd>
                        </dl>
                    @endforeach
                @endif
            </div>
        </div>
        <div class="i_mr">
        	<div class="i_title">
            	<a href="#"><img src="{{asset('Assets/images/n3.jpg')}}" width="168" height="22" alt=""/></a>
                <div class="line">&nbsp;</div>
                <a href="{{route('Home.Index.product')}}" class="more">+MORE</a>
            </div>
            <dl class="i_mc clearfix">
            	<dt><a href="#"><img id="img2" src="{{$indexImg}}" alt=""/></a></dt>
                <dd>
                	<ul>
                        @if(count($indexProduct) > 0)
                            @foreach($indexProduct as $product)
                                <li @if($product->sort == 1)class="on" @endif>
                                    <i>&nbsp;</i>
                                    <div class="title"><a href="{{route('Home.Index.productDetails')}}?product_id={{$product->id}}&classify_id={{$product->classify_id}}">{{$product->name}}</a></div>
                                    <div class="des">{{$product->desc}}</div>
                                    <img id="img1" src="{{$product->thumb_url}}" alt=""/>
                                </li>
                            @endforeach
                        @endif
                    </ul>
                </dd>
            </dl>
            <div class="space_hx">&nbsp;</div>
            <div class="i_title">
            	<a href="#"><img src="{{asset('Assets/images/n4.jpg')}}" width="151" height="22" alt=""/></a>
                <div class="line">&nbsp;</div>
                <a href="{{route('Home.Index.join')}}" class="more">+MORE</a>
            </div>
            <div class="i_md clearfix" style="overflow: hidden; height:100px;">
                @if($indexJoin)
                    <?php echo html_entity_decode($indexJoin->content)  ?>
                @endif
            </div>
        </div>
    </div>
</div>
@endsection

